﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MyHotel_BUSWS.MyHotel_MatHangDAO_Webservice;

namespace MyHotel_BUSWS
{
    public class MHQuanLyMatHangBUS
    {
        public static MatHang[] getListMatHang()
        {
            MatHangDAOWSSoapClient ws = new MatHangDAOWSSoapClient();
            return ws.getListMatHang();
        }

        public static bool themMatHang(MatHang matHang)
        {
            MatHangDAOWSSoapClient ws = new MatHangDAOWSSoapClient();
            return ws.themMatHang(matHang);
        }

        public static bool xoaMatHang(int maMH)
        {
            MatHangDAOWSSoapClient ws = new MatHangDAOWSSoapClient();
            return ws.xoaMatHang(maMH);
        }

        public static bool suaMatHang(MatHang matHang)
        {
            MatHangDAOWSSoapClient ws = new MatHangDAOWSSoapClient();
            return ws.suaMatHang(matHang);
        }
    }
}